package com.he.hsdyc.mapper;

import com.he.hsdyc.model.User;
import com.he.hsdyc.model.User2;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface UserMapper extends BaseMapper<User> {

    @Select("select * from user where del = false and state = #{state}")
    List<User> findAll(@Param("state")Boolean state);

//    User2 findByMobile(String mobile);

    Map<String,Object> getUserByUsername(@Param("username")String username);

    int getUserCount(@Param("username")String username,@Param("roleName") Integer roleName);
}
